<?php

namespace api\modules\v1\controllers\robot;

use Yii;
use api\controllers\OnAuthController;
use common\helpers\CommonHelper;

/**
 * Class IndexController
 * @package api\modules\v1\controllers\robot
 */
class IndexController extends OnAuthController
{

    public $modelClass = '';

    /**
     * @api {get} /v1/robot/index/message-info 消息信息
     * @apiName message-info
     * @apiGroup Index
     *
     * @apiParam {Number} id                                        消息ID
     * @apiParam {String} wechat_id                                 微信ID
     * @apiParam {String} friend_id                                 好友微信ID
     * @apiParam {String} source_type                               类型【weilaio微聊、其他】
     *
     * @apiSuccess {Object}  data                                   返回数据
     */
    public function actionMessageInfo()
    {
        $params = Yii::$app->request->get();

        return CommonHelper::dengta_request('/v1/baiyou/message-info', $params);
    }
}
